package com.pearl.generator.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pearl.generator.pojo.entity.BaseEntity;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 接口和XML文件配置表
 * </p>
 *
 * @author TangDan
 * @since 2022-08-05
 */
@Getter
@Setter
@TableName("pearl_generator_mapper_config")
@ApiModel(value = "GeneratorMapperConfig对象", description = "接口和XML文件配置表")
public class GeneratorMapperConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("设置父类，com.baomidou.global.BaseMapper")
    private String superClass;

    @ApiModelProperty("开启 @Mapper 注解，默认值:false")
    private Integer enableMapperAnnotation;

    @ApiModelProperty("启用 BaseResultMap 生成，默认值:false")
    private Integer enableBaseResultMap;

    @ApiModelProperty("启用 BaseColumnList，默认值:false")
    private Integer enableBaseColumnList;

    @ApiModelProperty("设置缓存实现类，MyMapperCache.class")
    private String cache;

    @ApiModelProperty("转换 mapper 类文件名称")
    private String convertMapperFileName;

    @ApiModelProperty("转换 xml 文件名称")
    private String convertXmlFileName;

    @ApiModelProperty("格式化 mapper 文件名称")
    private String formatMapperFileName;

    @ApiModelProperty("格式化 xml 实现类文件名称")
    private String formatXmlFileName;


}
